<?php
class Canbo extends AppModel {

	var $name = 'Canbo';



	var $validate = array(

	    'HOTEN' => array(
		    			'minLength' => array(
	   	   		       
							'rule' => array('minLength', 1),
	   	   		         	'allowEmpty' => false,
		               		'message' => 'Bạn phải nhập họ tên cán bộ'
	          			 	 )
					   )
		,
			
		'NGAYSINH' => array('date'=>array(
	   	   		       
							'rule' =>'date',
	   	   		            'message' => 'Ngày không hợp lệ'
	          			 	 )
					   )	
	   
    );
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Trambvtv' => array(
			'className' => 'Trambvtv',
			'foreignKey' => 'trambvtv_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'PDtBd' => array(
			'className' => 'PDtBd',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'PhieuDt' => array(
			'className' => 'PhieuDt',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Thoitiet' => array(
			'className' => 'Thoitiet',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>